package com.ruoyi.manage.controller;

import com.ruoyi.common.core.cg.dto.GroupStatusDto;
import com.ruoyi.common.core.cg.pojo.Group;
import com.ruoyi.common.core.cg.result.Result;
import com.ruoyi.manage.service.GroupManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author 马景昌
 * @create 2025/03/10
 * @description
 */
@RestController
@RequestMapping("groupmanage")
public class GroupManageController {
    @Autowired
    private GroupManageService groupManageService;

    @GetMapping("pageshow")
    public Result pageshow(Integer pageNum, Integer pageSize, Group group){
        Result pageshow = groupManageService.pageshow(pageNum, pageSize, group);
        return pageshow;
    }
    @PutMapping("updatestatus")
    public Result updatestatus(Integer id,Integer groupStatus){
        Result result = groupManageService.updatestatus(id,groupStatus);
        return result;
    }

}
